Moving device interface into seperate class