Added hacky readPort and hairy writePort for testing on device