Completed rewrite admin stuff.