New entity adding logic