This is off topic again, as the OP was concerned about the success of illegal formations.

I said in another thread that Nordeus has the right idea, but is implementing the solution incorrectly.