Adding some reference code.