Added getPostData() method.