This is to have less global variables.