Updated port.
Refactored to use a method reference.