Added hashFile function