Added pi estimation