Added new script and updated external.c