This case block would be better as a simple if. Will rewrite it.