Divided the main script into smaller scripts in order to interrupt some of the scripts.