Refactor. Debugging service.