Esc programming problem

'byte' can't contain the value 1000 or 2000. No wonder that failed.