Beginning right here, this function could just call monodic_logv instead of duplicating the code.