Thanks for the patch. I made some small changes and merged.