Add kernel type detection (for further use)