Update - updated code to work with JSON temp data