Implements 'depends'.