Enhancement for spike height calculation