Add ccat, bak, unbak functions