Move some details to global variables.