Adding nos. based on criteria