Removed static global init. Added option to print table on file.