Removed unused code in scriptbase