Made showInfos more dynamic.