Enabled detect() call during module loading