Add debug for new record creation