Imeplemented if then else. Something is fucky with the way environments
work tough