- Added isPortAccepted.
- Changed dev.put() into a template method.