Contribution and source function codes