Added logging ability.