Clean Version With SmallArray