Fixed bugs and added sensors.