Update sp functions