Refactored to just pass a hostname and port on calling create