Changed hard written names to global variables.