We now use the overlay to access the begin and end as this is updated by emacs as the buffer changes.