Added the code from the old laptop