Edit: Made the same changes to triggerEffect. I derped and edited the wrong function.