Addded patch for ns2