Clean scanning functions, adding sensor functions.