To implement dynamic add