Added debuging and changes some pin designators.