Added gatherer code. Untested.