Attempt at simplifying smartsize