We should probably ditch this pulse stuff and clean out a lot of this file.