Added initial sorting, device status