Changed the functions to posts.