When should I file a writ petition?