Make hashOf a function