Made autoreload switchable with environment vars