Cleaned up to be useful.