Combining multiple if statements.