Added PostType logic