Added environment utility majorly for persistence purpose. (Related to issue #225)