What is the main function of the peripheral nervous system?