Finish-up coding of the 'pulse' command