Added spkpos function