Added CleanCode function