Added functions to swap PKM data