Add closure template