Update to not require type. Also added ability to pass in a prefix and/or base.