Reordered code, added tags per post and other customfields