#32 added undefined variable and set max to 1000

- very minor bug fix - just added the variable that is being used but is not assigned with any values.