More extensive logging (function names + basic state