Cleaned code up to store 0 instead of using a separate variable to disable - retains compatibility with previous settings