Added 10K detection code