Removed uneeded indexObj