Fixed ReplaceBytes and made the dl log optional.