Added stl detection support