Cleaned code for grid view of LIBRE data.