Added patch for activities