added sweep functionality for the SPA but has NOT been tested yet.