Added support for multiple script sources