Modify code for nice view.