Set up format for record