Revised for use on android tablet.