Restructured device transactions.
Merge branch 'master' of github.com:ath88/PMPH-Project