Added reference to Alex's code.