Add error handling if sx craps out
Add parent and disabled in template, clean up logic