Refactored glue.