Glue functions correctly