Do we still need these global variables here?