Adding serial port reading for cocoa.