Preparation for backpropagation