Adds wait command.