Added mode to allow offline testing