Code for COnnect demo applicaiton