Tool logic