Refactored eye detection is now working