Similar to the comment above, if lastPK is not used and is commented out, it should probably be removed.