Testing with switch system. Refactor it.