Add movement theshold to improve performance