Bringing in the rest of the code so far.