Works for small cases