Added a begin/end pair to Entity.