Added function and flag that will run everything locally so it doesn't have to communicate with the server.