Attempting to generalise categories directive