Revert changes and put in logger