Preparing the environment