Added programmable pulse operation and tested.