Add logging primitives. Clean up unnecessary croaking.