Added some autocleaning
Build up the basic CD/partial frame code