Switched Play and Recording code to proper positions