Create an auto purge script for Msg objects
Added a log command