Before libSVM integration