Updated to new version of logmich
Changed code for new version of logmich