Repeated from line 146