Correct the grammatical flaws in this text:
The RFID tags are broken once patients are discharged so the bed can be prepared for new patients so waiting time would be reduced.
The RFID tags are broken once patients are discharged so the bed can be prepared for new patients, and the waiting time would be reduced.