Pass activity focus to functions in sequence to avoid overflow