Refactored the "glamelog" function as "glamel".