Added pre_start.
Added getting dev from environment.