Remove puts.
Add comment.
Add comment.
Begin refactor.
Fix typo.
Remove local schemas.
Tidy template.
Tidy template.
Remove comments.
Fix typos; add check for check_statuses.