Improved time fetching from config file. And one more version of the greping from xml