Method of tracking an object