Added user input to determine max number