Add wait command.

Add wait command so that artifact uploading isn't called too early.