Porting Enviroment and Loop Classes