Now catching ctrl-c.
Update
Anti-loop code.