Cleaned up polynomial