Adding type of object when adding