Moving passSize into try catch block.