Added workarounds for modem bugs.