Added if/else to variable pool to store if it is true or false