Add source and diagram