Improve the logic of the given paragraph:
The commissioners said the reason was. Residents thought that trains would wake them during the night and frighten their livestock.
The commissioners said the reason was because residents thought that trains would wake them during the night and frighten their livestock.