Changes to make the Simple code work on Touch