Debugging output for emit_glue now simplified so that the init and deinit functions are no longer needed.