Merged logic for profiler on local employee and production server