Found the problem, missing class function