All tests pass, cleaned up rational_plugin a bit