editing pulse.py to make it more comprehensive...