Device assigning working fine