Formatting: nested if-statement needs to be four spaces in, like everything contained in an if-statement.  Sorry.