Square wave, works as it should