Added kutils utility functions