Generalized one of the methods.