Added the posts insertion code.