Now using record for the gen_server state.