Add check for catalog file for speed and functions to convert to data.table