Initializing environment