Rename chans to channels and add pi command