Moved xcdevices formula