Perform checks first.