Added spiky kernel and delta p calculation