Added sensor functionality back.