Added functionality to AddPost