Removed unused 'value' variable