Put helper functions into namespace