Try to use lambdas.