Alex's code.