Fix for new command system, waiting on flags

Signed-off-by: DziNeIT <dzineit@live.co.uk>