Adding duplicate function

Adding duplicate function and white space clean up.