Finished up the code.