Need to fix the write to excel part..