added pulse control