Fixed references to log and instantiation.