Changed all booleans to ints