Prepend hash for querying ID