How to Detect and Prevent Curses