Switched to data.table for fast reading