Finalize codes and implements. Everything is done!