Moved magnet importing to separate script