Made some improvements in create-objects.sh