Updated to put more documentation on the execution of the function.

Proof that the function seems to be working as expected.