Implemented Record Function