Changed department switching function to be a bit more clear.