Removed undefined variables.