REplaced var with int[], removed a try catch error for timeouts