Fixed not_enough_mdata status. Implemented the add_mdata task - just a draft.