Add entries code