Addressed review comments. Removed a stray logging and renamed variable.