Added more Utilities. Fixed a bug in KMP.