Fixed exception issues with test coverage
Added temp hash method and main flow