Added support for magnet link generation.