Add flour and stir in brown sugar, ketchup, tomato juice, chili powder, salt and pepper. Add beans last. Simmer for 30 minutes.