Constructor in toplogger.php are broken into functions