Script should work perfectly now (I hope).