Added block to deal with custom tool data.