Code to support ProtoCam project