Cleaned up Linearization Functions. Implemented two polls for speed