Code does not work correctly.

Need to try a different way.