Fixed print statements and testing what is in environment.