The Land Claims Court has jurisdiction under section 22(2)(c) of the Restitution of Land Rights Act 22 of 1994 to decide issues not ordinarily within its jurisdiction, including compliance with other legislation such as LUPO, where: (1) such issues are incidental to a matter within its jurisdiction (i.e., a pending land claim over the property in question); and (2) the court considers it to be in the interests of justice to do so. To determine incidentality, the court must first identify the functions expressly conferred upon it, and then apply the broad provisions conferring ancillary and incidental powers only in relation to those functions. It is in the interests of justice for the Land Claims Court to exercise such incidental jurisdiction where requiring litigants to approach different forums over the same subject matter would be prejudicial, prohibitively expensive, and lead to multiplicity of actions. The doctrine of legality requires courts to enforce compliance with applicable legislation and not countenance ongoing illegality. An interdict prohibiting unlawful conduct that constitutes a continuing criminal offence should only be suspended in exceptional circumstances, and discretion will be sparingly exercised. The fact that a party knew of the need to regularize its position and that harm was foreseeable does not constitute exceptional circumstances justifying suspension.