Function should be global.