Do some minor checks.