```dev``` and ```device``` are a bit confusing but I don't suppose it can be changed here. Maybe a comment.