Did lots of work with environment settings and application startup.