Added proper local check