Added tests and implementation so that numbers > 1000 get ignored