Implemented LOG_IF.