Utility Scripts for Detection