Removed useless puts.
Added working lambdas.