Compilation errors fixed; parallel channel calculation added