Minor improvements to sensor application.