We document how manipulation of a targeting system for social welfare programs evolves over time. First, there was strategic behavior of some local politicians in the timing of the household interviews around local elections. Then, there was corrupt behavior with the sudden emergence of a sharp discontinuiTY in the score density, exactly at the eligibiliTY threshold, which coincided with the release of the score algorithm to local officials. The discontinuiTY at the threshold is larger where mayoral elections are more competitive. While cultural forces are surely relevant for corruption, our results also highlight the importance of information and incentives.