Add update_bookmark() and related functions