Adding the original code.