Added standalone mode.