Added periodic reverse in shell script.