Update collect_logic.js