Updated Pi calculation