Implemented workable script for syncung with nios