The file reading and the locating of relevant lines needs a rework away from the badly readable regex