Added missing logging statements.