Rewrite some of the log functions...