added command analyze function.