Wrote new sbs beta writer.Started adapting the main script and template.