moving more functionality into the DroidPlannerApi class.