Start working on results logging; other small fixes