Add logic to avoid changing the tool when it has not required