Put HEX to frequency conversion functions into the server module, instead of importing.