Added smarter sieving to APLOD, I hope