Do things in the right order
Dump environment