Refactored the _exec method in the play command.