Removing extra code from example application