Fix example and globally namespace utility functions