Implemented server side collect script