Implement possibility to reset local variable changes