Toolstack detection