Parts alerts and syntax fixes

The parts alerts function has been added, but the threshold is hard
coded