What is all this new code doing?