Added name check for object add
Added position and type checks