Migrate to $.ajax to mitigate timeout issues.