Removed unused variable, added tick count check
Merge pull request #521 from RisingFog/dtm-update

Removed unused variable, Added tick count check