Added % calculation to hash file