Feedback systems for CNC machines