Used preprocessor directives to have only one, variable clean function