Added last hash parsing function