Solved issue with function register_backup