Added port class and finalisers for the channels.