Dynamic add method