Added an out for if the input data is bad