Finished net code, for the most part