Refactored using detect