Rewrite class and gather all the metadata