Use global variables to reduce hard code.