Some checking that could possibly throw an error.