I usually do those first, so that if there is an error, nothing messy happens