Moving IPython code to here. Makes sense.