Fixed the pulse integration that I mistakenly removed.