Create new method for hashing and fix automatic property setting for the target type enum.