Added sensor input filtering