Creating the glue code