Changed Record and playack functions