Modularized network initialization.