Removed union dependency to allow Swift support.