Better SMART_SLUG implementation