Moved EasyPulse into a class