Removed redundant code

Removed redundant code from demo application.