Added optional parameter for cache object. Added hashobject and splitchar onto returned function from module