Moved utility fns to core.clj