Added functionality to get posts from reddit