Tried combining --wait with --command. No luck
Code tweaks