Code from procedures in bad file