Input boundaries corrected.