Copy original code to be close to the original.
Code is non functional at the moment.