Added scanner next to prevent overflow.