Oops. uncommented device specific stuff