Implement metadata reader and get rid of useless interfaces