Added environment debug functions.
Clearer status for test.