Initializes the system environment.