Setting the enironment