Extracted Hashes subroutines to own file