Added dynamic ID method