Removed 'document' and 'tree' args from methods.