Change createPostData to optionally include all elements