Revised look-breaking logic because coding before bed is bad.