Generating valid syntax