Updated to use SMS PI