Changing hardcoded value to already existing variable