New main function for test purposes is added.
New main function for test purposes is added.