Completed code to make LSI map.