Finished Perceptron fixes & performance improvements.