^^^ This. The logging out on the onPulse function seems like it's kinda suspicious logging out so much. If you could just simply change that I'd...
Separate names with a comma.