Fix environment comment
Better logic in call method
Throw exception if any other type of environment is created