Add settings port
Switch to lambda instead of defining a new function