Added stop to networking and added networking to main code