Posted Luis' original code.