Refactored readPulse tester <3