Just a little extra error check