Updated to work with the newer versions of Redmine.