Implemented PWMs on my own!