Add open_port helper method