Working commit. Script is doing exactly what it's told.