Implemented proper closures.