What remedies can be sought through a writ petition?