Added Logic for choosing to sweep or magnet