Creating and placing a custom detection script