Addding some of the code.