Cleaned up polynomial I/O