Added a separate controller for scripts