Changed content creating script to check if content already exists