Duplicated GetPosts function

For research purposes