Added missing function docs
Cleaned up rewrite delegation check.