Threadsafe ENV interaction

Closes #6
Good point - updated in a6b5eaff5140b3459a54a00bac51500f172f5f85