Added Device model functions