Added doCapture method to Service class and changed some method names.