Added possibility for concurrent commands.

Might need to work on this a bit more later on, as this causes a lot of
CPU load and locks up the Python process for some reason.