Added sensing tasks and timer. Still needs work.