Modified singleton class and log manager