Automatic range tracking