Added some smartass'ing logic.