Reverse the log and add some magic