Removed unused variable that was causing issues.