Implemented scan function for environment objects