Adding code from revision