Moved the options inside the if statement.