Update MainService.java

Cleanup of old methods.