Changes for input filtering.