Used conidtional compilation rather than separate source file for regex loading of laser.dat