Changed to function in a static context.