Add cowlib
Implement recovery data#1