Added a begin / end update for JP frames, and refactored code. Going to prefix with jp_