Added activity API.