Added some SPN functions, code does not break