First draft of CCI port (broken).