Changed size to 1000 and uses command line argument