Added loader detection.