Should work just fine. Program was tested at the site, some code cleanup was done and some comments were added.