Used Lambda to provide better flexibility.