Some Swift Utils