Uncommented out code, but didn't understand how function was defined.