Added code to access the block and table data from the controller.