Updated activity API