Ironed out most problems in subrun. Couple more features needed and it will be completed.