Finished implementation of basic clist functions (not tested yet)