This is response to this Stackoverflow question. The main issue was restructuring the data so it worked with the code in this Bl.ock