First implementation of host logic