Thanks everyone for your valued input.I have some re-engineering to do.