Modifications to scripts