Made creating of records work