Global context function.