Main part code added.