Repair and maintenance of machinery