Clean up old codes