Added changes by softmix. Lazy fuck wouldn't do this even though it took a whopping 2 minutes to discard unmodified files...