Try returning an object instead of a hash.