Removed duplicate insert declaration and explicitly declared array in net in order to fix OSX compile errors.