Change in analysis_metadata function, in order to make edit metadata feature functional