Added comment and removed unused variable