Fix rooting. Improve SM interaction.