Added test mode.