Added remove method that can reassign head