Improves definition of all ability so that it works with class.