Removing scripts not relevant to # functions