Wrapped dynamic memory handling in GLUS.