Add pulse calculation that need to be refine according to the samples