Partial conversion by Shivaram
_