Add backup(String msg) method and few corrections