Simple replace script that have a simple recovery function.