Copied iOS files and tweaked for my phone. Changed legend tag to p w/id