Why this code is needed?