For the proper texture, add salt when there is about 30 minutes of cooking time left. Adding it at the beginning can result in beans that are tough and chewy.