Switch Library, Updated Main File