Added quad functionality on read_cat() and cat_filter()