Removes unnecessary code for the example.