Fixed up code for Log and ME a bit, still doesn't compile