Machining of metal