Reduced powers to fix overflow issues - hopefully it works this time.