What is the version of the following sentence with correct punctuation?

If there was not enough money available when required people would become suspicious especially as their deposit books showed how much they had deposited
If there was not enough money available when required, people would become suspicious, especially as their deposit books showed how much they had deposited.