Added basic recovery functions

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@gmail.com>