Added middleware sample; Modified boot script accordingly;