Script falsely reporting nothing processed