Modified for smxa and smxax