Added convenience check input function to util.py