Swapped true and false for 1 and 0