Cut out irrelevant code