Fixed quick fail issue

I toyed around and found that the issue I was having was from having to
many nested for loops. The script seems to be back to functioning
properly now :+1: