Initialize net properly and save output in correct format