Coding main routine.