Moved functions back to admin.