Fixing some errors in the isReady function. Also updating to latest version of AWS SDK