Couldn't you just make 'hashover' into a global boolean?