Had to use local booleans to solve