Removed adddate from prehash and adjusted the scripts for the change