Implemented watchHeading function.