Updated service fragment, caching options and also refactored some code.