Pass correct last sync variable to the get_hash functions