Fixing starmap to work with ports. Fixes #17.