Some little changes:
-It was modified the delay used to check the environment.