Implementing sp