Works but has high memory cost ~2GB