Make LOOP_DELAY a configurable parameter

Not sure if this is how you would want to do this, but we'd like to expose the loop_delay parameter to developers.