Added chan tracking; fixed rindex bug