Dear Rohit,
I think NetChain and relevant functions will work for me. I am really pleased to find that this didn't turn into a blackbox of blackmagic kind of thing:)
Your help is greatly appreciated.