Added addObjectCommand