Find another way to do this than passing a boolean.