All main functions has been finished