Modified server startup to use environment variables.