Fixed Math Error, Upgraded AWS SDK