Add a way to disable tool function (fixes #21)