Implements createRecord