Refactor that allows getting total contributions