Cannot refer to constant until serialport is required