Added functionality for showing and modifying play mode.