Renamed 'previous' as 'parent'