I have attached a patch. Please review.