Add conditional definition of PI