Adds size and updates data md fields