Support user specified class and method