Adding code to read and render boxes