Cleaned up Knockout adapter.