Added a working command-line interface for user-controlled play.