Check lines 376+