Change to rectangle wave form