Functions for supporting begin/end jumping