Tweaked MenuLoop to take a data table parameter so it can be more flexible/support other menu's easily.