Checking Ricardo's original code.