Initialize the environment