Changed compare to work with dataController.