Moved processing from main thread to background in cases activity.