Main logic.

Signed-off-by: vjt7312 <vjt7312@gmail.com>