Added helper functions to utilities. Some minor cppn changes.