Cleanup language function