Working on get electricity for ports function