Replaced assert with exception.
Fixed incrorrectly referenced method name.
Simple closures working.