The person who is nominated in the will as executor files a petition with the Superior Court asking that he or she be appointed as executor. If there is no will, the Probate Code provides a list of persons who have priority to petition to become administrator. The will also is filed with the petition, and notices are sent to the heirs and/or relatives to let them know when the hearing will be held. If there are objections to the petition, or if the validity of the will is contested, the hearing will be used to resolve any problems that may arise. In some cases this may mean that the validity of the will is not upheld, or that some person other than the original petitioner is chosen to administer the estate. If there are there no objections and the petition is granted, the executor then makes an inventory of the estate’s assets, locates creditors, pays bills, files tax returns, and manages the estate assets. When all of the duties of the executor are completed, another petition is filed with the court asking that the estate be distributed to the heirs. If this petition is granted, the estate administrated is completed by distributing the assets to the heirs and filing final tax returns.