immediate stats flag functionality added. Issues with linux GCC compiler