Added Miencart logging; should be stable enough to be used in a server.