Switch-method.