Added assertion support on closures