Bug fix
Built subsIndex, it almost works