Trying to get envir right. Added some print statements