More runcommand improvements