Fixed structure for budget ID, improved scoring, refactored publisher function