Implementing sp initialization