Added base condition to derive bucket members