37When the crowd heard this, they were deeply troubled. They said to Peter and the other apostles, "Brothers, what should we do?" 38Peter replied, "Change your hearts and lives. Each of you must be baptized in the name of Jesus Christ for the forgiveness of your sins. Then you will receive the gift of the Holy Spirit. 39This promise is for you, your children, and for all who are far away—as many as the Lord our God invites." 40With many other words he testified to them and encouraged them, saying, "Be saved from this perverse generation." 41Those who accepted Peter’s message were baptized. God brought about three thousand people into the community on that day. 42The believers devoted themselves to the apostles’ teaching, to the community, to their shared meals, and to their prayers. 43A sense of awe came over everyone. God performed many wonders and signs through the apostles.