Adding compiler throttle to avoid unnecessary compilations
added a constant for the throttling delay and changed it from 1000 to 500ms