Removed unused variables and added comment.