This looks like it duplicates line 212