Added some code for posts, not tested yet...