Machining in situ