Add magnet script