Added beginings for cgi interface support