Works for minimal cases.