Rethink environment using hashmaps