Add code for handling initializing with invalid inputs