Fixed issue with using 'tools' as the name for a PHP function argument variable