Added function for posting pi data