Finish classify method.