Use #to_h instead of #to_hash