Refactored code for adding recordings.