Updated to make it work with CKAN 2.2