Copied code from new project
Fixed .getOwnerEmail compiler error