Replaced dummy check for valid input with a less broken dummy function.