Changed pulse value error from looking at keys to looking at values