After about 30 minutes of cooking the beans, in a separate pan/skillet, start the sofrito by add olive oil to pan and bring to medium heat. Add garlic, onions and bell peppers and cook for 5-7 minutes or until onions begin to turn translucent. Make sure that you continue to stir the beans as you cook the sofrito, scraping the sides and bottom frequently.