Generate sources