Moved stats export to a separate script file