Add median spike check to pipeline