Added some of the HMSS code into the Demo Project