Groundwork for logging and stats.
Change package name to af