Updated docstring and renamed variables to more meaningful names