Scripts for source handling