Netlabel functionality, general cleanup.