Added callback to record/stoprecord