Add logging, top-level expressions, min, max, ^