Added wait command.