More refactoring.

Added new functions to GLUS.