After some thought, this causes an insecure comparison. Will need to redo this :(