Added code to initialize and register net devices