Added separate utility functions --kaleko