Collecting the useful code.