Added pulse and fixed parsing logic