Added some functions for Posts