Looks like "kind" is the only difference here - probably worth putting "kind" in a variable and having the AddTool outside of the if statement.