First part of host application