Fixes to embed script
Stub implementation of settings