Partial implementation of Switch logic.