Use hashref instead of hash directly.