Replace large if by Protect Statement