First work on SVM layer (still busted!)