Changed the way I search for files in the same folder to be more efficient (check through less files), which should help prevent startup lag.