Working impersonation impl.