Fixes. Now saving random number to device, not ip