Refactor for better API.
More robust fetchMagnet.