Make hash method private to force errors on direct access: should use declared methods here.