Edited log_mean