Fixes pulse example
Cleanup