Moved the request_to_record function into the generic module.
Fixed up the init function and exported it.