Cleaned classical code