Added code to actually run tasks simultaneously