Refactored departments into a departmentsModel, didn't seem to commit everything last time.