Multiple event queues support and some bugfixing.

I don't like this method. After we create 50 actions we'll place all their code here?