Didn't work under browser globals environment.