Make public for command-line version of SPT.