Device to user assingment implemented
Fucking refuctored