Added updateEntity()