Almost finished the scaffold generator