Improve perceptron