Added support for dynamic closures.