Removed redundancy between record_control() and player_control() by re-writing their common structures.