Added repair functionality for tools