Added activities. Fixed a few bugs in Service.