Add the closure at build time