Finished env script and tested.