You should move this script into a separate file