Add support for closures.