Move download music feature to function