Also, using ini is a bit excessive per your code when you could've used a global variable to set for yes or no.