Moved logger and stats to a new package