Everything up to line 8