Allow setting different type on scriptBlock
Allow setting different type on scriptStart + scriptEnd
Clean up unused code