Added mem_check target
added input data index into source addition