Added functions for glueToMap and unglue that output a message to console