This needs a better boolean check.