Consenting patients were randomized to either receive usual care from their own health care team or enter an intervention program that included ( 1 ) telephone-based motivational counseling , ( 2 ) free nicotine replacement therapy ( NRT ) for 6 weeks , ( 3 ) access to community-based referrals to address sociocontextual mediators of tobacco use , and ( 4 ) integration of all these components into their normal health care through the EHR system .